package org.duiduo.controller;

import cn.hutool.core.map.MapUtil;
import org.duiduo.common.bean.res.RespBean;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 降级控制层
 *
 * @author liangze
 * @date 2025/3/7 14:26
 */
@RequestMapping("/fallback")
@RestController
public class FallbackController {

    @GetMapping
    public RespBean fallback() {
        return new RespBean(999, "服务暂时不可用", null);
    }

}
